﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApplicationExperimental
{
    /// <summary>
    /// Interaction logic for Login.xaml
    /// </summary>
    public partial class Login : Window
    {
        AuthenticationController loginController;
        public Login()
        {
            InitializeComponent();

            loginController = new AuthenticationController();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (loginController.RequestLoginAccess(userNameTextBox.Text, passwordBox1.Password ))
            {
                this.Close();
            }
            
           

        }
    }
}
